<style>
    .form-commonsearch .form-group {
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    form.form-commonsearch .control-label {
        padding-right: 0;
    }

    .tdtitle {
        margin-bottom: 5px;
        font-weight: 600;
    }

    #channeltree {
        margin-left: -6px;
    }

    #deptbar .panel-heading {
        height: 55px;
        line-height: 25px;
        font-size: 14px;
    }

    @media (max-width: 1230px) {
        .fixed-table-toolbar .search .form-control {
            display: none;
        }
    }

    #deptbar .panel-body{
        height: 850px;
        overflow: auto;
    }

    @media (min-width: 1200px) {

        #deptbar {
            width: 20%;
        }

        #userpanel {
            width: 80%;
        }
    }

    .archives-label span.label {
        font-weight: normal;
    }

    .archives-title {
        width: 400px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .content {
        padding: 15px;
    }
</style>
<div class="row">
    <div class="col-md-3 hidden-xs hidden-sm" id="deptbar" style="padding-right:0;">
        <div class="panel panel-default panel-intro">
            <div class="panel-heading">
                <div class="panel-lead">
                    <div class="pull-left">
                        <em>{:__('部门列表')}</em>
                    </div>
                    <div class="pull-right">
                        <a href="javascript:;" class="btn btn-link btn-xs btn-channel hidden-xs hidden-sm"><i class="fa fa-bars"></i></a>
                    </div>
                </div>
            </div>
            <div class="panel-body">
                <span class="text-muted"><input type="checkbox" name="" id="checkall"/> <label for="checkall"><small>{:__('Check all')}</small></label></span>
                <span class="text-muted"><input type="checkbox" name="" id="expandall" checked=""/> <label
                        for="expandall"><small>{:__('Expand all')}</small></label></span>
                <div id="depttree">
                </div>
            </div>
        </div>
    </div>
    <div class="col-xs-12 col-md-9" id="userpanel">
        <div class="panel panel-default panel-intro">
            {:build_heading()}
            <ul class="nav nav-tabs" data-field="status">
                <li class="toggle-channel"><a href="javascript:;" class="btn-channel"><i class="fa fa-bars"></i></a></li>
            </ul>

            <div class="panel-body">
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade active in" id="one">
                        <div class="widget-body no-padding">
                            <div id="toolbar" class="toolbar">
                                {:build_toolbar('refresh,add,delete')}
                                <a href="javascript:;" class="btn btn-success btn-sync {:$auth->check('flow/deptuser/synchronism')?'':'hide'}" title="同步">
                                    <i class="fa fa-pencil"></i>同步
                                </a>
                            </div>
                            <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                                   data-operate-edit="{:$auth->check('flow/deptuser/edit')}"
                                   data-operate-del="{:$auth->check('flow/deptuser/del')}"
                                   width="100%">
                            </table>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
